<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('getNumInvite')){
    /**
     * count invited
     *
     * @param $projectId
     * @return mixed
     */
	function getNumInvite($projectId)
	{
		$CI 	= & get_instance();
		$CI->load->model('skills_model');

		$condition = array('project_invitation.project_id' => $projectId);
		$result = $CI->skills_model->getInvited($condition, 'project_invitation.id');
				
		$row = $result->num_rows();
		return $row;
	}
}
?>